NAME		= yahws

SRCS	= src/main.cpp src/csocket.cpp

OBJS		= $(SRCS:.cpp=.o)

CXXFLAGS	= -D_GNU_SOURCE -D__BSD_VISIBLE -D_XOPEN_SOURCE=600 -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wunused-parameter -Wchar-subscripts -Werror -ggdb #-Wuninitialized -O3

LDFLAGS		=

LDLIBS		= -lpthread

INSTALL		= install

RM		= rm -f

.PHONY: all clean

all: $(NAME)

$(NAME): $(OBJS)
	$(CXX) $(LDFLAGS) $(LDLIBS) -o $@ $^
	
clean:
	$(RM) *~
	$(RM) *#
	$(RM) $(OBJS)
	$(RM) *.core
	$(RM) core
	$(RM) $(NAME)

install:
